package com.xjscrm.console.param.sop;

import com.xjscrm.common.vo.sop.GroupTigger;
import com.xjscrm.common.vo.sop.HangerTigger;
import com.xjscrm.common.vo.sop.NewCustomerTigger;
import com.xjscrm.common.vo.sop.TagTigger;
import com.xjscrm.console.param.BaseDto;
import com.xjscrm.console.param.SopTaskDeviceDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("sop任务参数")
public class SopTaskDto extends BaseDto {

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    private Long id;

    /**
     * 任务名称
     */
    @ApiModelProperty(value = "任务名称")
    private String name;


    /**
     * 类型(1-手动sop;2-新客户sop;3-标签sop;4-群sop)
     */
    @ApiModelProperty(value = "类型(1-手动sop;2-新客户sop;3-标签sop;4-群sop)")
    private Integer type;

    /**
     * 模板id
     */
    @ApiModelProperty(value = "模板id")
    private Long teaplateId;


    @ApiModelProperty("手动SOP触发条件")
    private HangerTigger hangerTigger;

    @ApiModelProperty("新客SOP触发条件")
    private NewCustomerTigger newCustomerTigger;

    @ApiModelProperty("标签SOP触发条件")
    private TagTigger tagTigger;

    @ApiModelProperty("群SOP触发条件")
    private GroupTigger groupTigger;


    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id", hidden = true)
    private Long createrId;

    /**
     * 修改人id
     */
    @ApiModelProperty(value = "修改人id", hidden = true)
    private Long updaterId;


    @ApiModelProperty("sop任务和客户及客户群关系参数")
    private List<SopTaskCustomerDto> sopTaskCustomerDtoList;

    @ApiModelProperty("sop任务和机器人关系参数")
    private List<SopTaskDeviceDto> sopTaskDeviceDtoList;


}
